package com.seu.me.test.issue;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * 问题件
 *
 * @author liangfeihu
 * @since 2019/10/28 16:36
 */
@Data
@ToString
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "body")
public class IssueXmlInfo {

    @XmlElement(name = "IssueInfoList")
    private IssueData issueData;

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class IssueData {
        @XmlElements(value = {@XmlElement(name = "IssueInfo", type = IssueInfo.class)})
        private List<IssueInfo> issueInfoList;
    }

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class IssueInfo {
        private String GrpApplyNo;
        private String ApplyNo;
        private String CustomerNo;
        private String IDType;
        private String IDNo;
        private String ReplyState;
        private String IsQuestion;
        private String IssueFlag;
        private String IssueDescribe;
        private String IssueNo;
    }

}
